package com.lz.blog.controller;

import com.lz.blog.service.LoginService;
import com.lz.blog.vo.Result;
import com.lz.blog.vo.params.RegisterParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author Liz
 * @date 2023/02/14 11:28
 **/
@RestController
@RequestMapping("register")
public class RegisterController {

    @Resource
    private LoginService loginService;

    @PostMapping
    @ResponseBody
    public Result register(@RequestBody RegisterParam registerParam) {
        return loginService.register(registerParam);
    }
}
